import javax.swing.tree.TreeNode;
import java.util.*;

/**
 * @ClassName JZCCBL
 * @Description: TODO
 * @Author hl
 * @Date 2020/10/13
 * @Version V1.0
 **/
public class JZCCBL {
    public static void main(String[] args) {
        System.out.println(seach(5,2));
    }
    public static int seach(int m,int n){//m表示m个苹果，n表示n个盘子
        if(m<0) return 0;
        if(m==1||n==1) return 1;
        return seach(m,n-1)+seach(m-n,n);

    }
}
